home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1991-11-04 | 3.8 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Mon Nov 4 22:50:03 1991, modified Mon Nov 4 22:50:03 1991, creator 'MPS ', type ASCII, 3121 bytes "Scrolling.c" , at 0xcb1 428 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0b 53 63 72 6f 6c 6c | 69 6e 67 2e 63 00 00 00 |..Scroll|ing.c...|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 00 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 0c 31 00 | 00 01 ac a5 3b c5 6b a5 |......1.|....;.k.|
|00000060| 3b c5 6b 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |;.k.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e0 38 00 00 |........|.....8..|
|00000080| 2f 2a 20 a9 20 31 39 38 | 38 2d 39 31 2c 20 42 6f |/* . 198|8-91, Bo|
|00000090| 77 65 72 73 20 44 65 76 | 65 6c 6f 70 6d 65 6e 74 |wers Dev|elopment|
|000000a0| 20 43 6f 72 70 2e 20 2a | 2f 0d 2f 2a 20 53 63 72 | Corp. *|/./* Scr|
|000000b0| 6f 6c 6c 69 6e 67 2e 63 | 20 2a 2f 0d 0d 23 69 6e |olling.c| */..#in|
|000000c0| 63 6c 75 64 65 20 3c 54 | 79 70 65 73 2e 68 3e 0d |clude <T|ypes.h>.|
|000000d0| 23 69 6e 63 6c 75 64 65 | 20 3c 51 75 69 63 6b 64 |#include| <Quickd|
|000000e0| 72 61 77 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |raw.h>.#|include |
|000000f0| 3c 43 6f 6e 74 72 6f 6c | 73 2e 68 3e 0d 23 69 6e |<Control|s.h>.#in|
|00000100| 63 6c 75 64 65 20 3c 44 | 69 61 6c 6f 67 73 2e 68 |clude <D|ialogs.h|
|00000110| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 45 76 65 6e |>.#inclu|de <Even|
|00000120| 74 73 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |ts.h>.#i|nclude <|
|00000130| 4c 69 73 74 73 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |Lists.h>|.#includ|
|00000140| 65 20 3c 4d 65 6e 75 73 | 2e 68 3e 0d 23 69 6e 63 |e <Menus|.h>.#inc|
|00000150| 6c 75 64 65 20 3c 54 65 | 78 74 45 64 69 74 2e 68 |lude <Te|xtEdit.h|
|00000160| 3e 0d 0d 23 69 6e 63 6c | 75 64 65 20 22 47 6c 6f |>..#incl|ude "Glo|
|00000170| 62 61 6c 73 2e 68 22 09 | 0d 0d 23 69 6e 63 6c 75 |bals.h".|..#inclu|
|00000180| 64 65 20 22 53 63 72 6f | 6c 6c 69 6e 67 2e 68 22 |de "Scro|lling.h"|
|00000190| 0d 0d 23 70 72 61 67 6d | 61 20 73 65 67 6d 65 6e |..#pragm|a segmen|
|000001a0| 74 20 53 63 72 6f 6c 6c | 69 6e 67 0d 09 0d 2f 2a |t Scroll|ing.../*|
|000001b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2a 2f 0d 76 6f 69 |--------|--*/.voi|
|000001c0| 64 20 52 65 73 69 7a 65 | 53 63 72 6f 6c 6c 42 61 |d Resize|ScrollBa|
|000001d0| 72 73 09 28 29 0d 7b 0d | 09 52 65 63 74 09 09 09 |rs.().{.|.Rect...|
|000001e0| 63 6f 6e 74 72 6c 52 65 | 63 74 3b 0d 09 73 68 6f |contrlRe|ct;..sho|
|000001f0| 72 74 09 09 09 63 75 72 | 54 6f 70 3b 0d 09 73 68 |rt...cur|Top;..sh|
|00000200| 6f 72 74 09 09 09 63 75 | 72 4c 65 66 74 3b 0d 09 |ort...cu|rLeft;..|
|00000210| 52 65 63 74 09 09 09 70 | 6f 72 74 52 65 63 74 3b |Rect...p|ortRect;|
|00000220| 0d 09 0d 09 70 6f 72 74 | 52 65 63 74 20 3d 20 63 |....port|Rect = c|
|00000230| 75 72 57 69 6e 64 6f 77 | 2d 3e 70 6f 72 74 52 65 |urWindow|->portRe|
|00000240| 63 74 3b 0d 09 69 66 20 | 28 63 75 72 2d 3e 76 53 |ct;..if |(cur->vS|
|00000250| 63 72 6f 6c 6c 20 21 3d | 20 4e 55 4c 4c 29 20 7b |croll !=| NULL) {|
|00000260| 0d 09 09 63 6f 6e 74 72 | 6c 52 65 63 74 20 3d 20 |...contr|lRect = |
|00000270| 28 2a 2a 28 63 75 72 2d | 3e 76 53 63 72 6f 6c 6c |(**(cur-|>vScroll|
|00000280| 29 29 2e 63 6f 6e 74 72 | 6c 52 65 63 74 3b 0d 09 |)).contr|lRect;..|
|00000290| 09 63 75 72 54 6f 70 20 | 3d 20 63 6f 6e 74 72 6c |.curTop |= contrl|
|000002a0| 52 65 63 74 2e 74 6f 70 | 3b 0d 09 09 48 69 64 65 |Rect.top|;...Hide|
|000002b0| 43 6f 6e 74 72 6f 6c 20 | 28 63 75 72 2d 3e 76 53 |Control |(cur->vS|
|000002c0| 63 72 6f 6c 6c 29 3b 0d | 09 09 4d 6f 76 65 43 6f |croll);.|..MoveCo|
|000002d0| 6e 74 72 6f 6c 20 28 63 | 75 72 2d 3e 76 53 63 72 |ntrol (c|ur->vScr|
|000002e0| 6f 6c 6c 2c 0d 09 09 09 | 09 09 20 28 70 6f 72 74 |oll,....|.. (port|
|000002f0| 52 65 63 74 2e 72 69 67 | 68 74 20 2b 20 31 29 20 |Rect.rig|ht + 1) |
|00000300| 2d 20 73 42 61 72 57 69 | 64 74 68 2c 0d 09 09 09 |- sBarWi|dth,....|
|00000310| 09 09 20 63 75 72 54 6f | 70 29 3b 0d 09 09 53 69 |.. curTo|p);...Si|
|00000320| 7a 65 43 6f 6e 74 72 6f | 6c 20 28 63 75 72 2d 3e |zeContro|l (cur->|
|00000330| 76 53 63 72 6f 6c 6c 2c | 0d 09 09 09 09 09 20 73 |vScroll,|...... s|
|00000340| 42 61 72 57 69 64 74 68 | 2c 0d 09 09 09 09 09 20 |BarWidth|,...... |
|00000350| 28 28 70 6f 72 74 52 65 | 63 74 2e 62 6f 74 74 6f |((portRe|ct.botto|
|00000360| 6d 20 2b 20 31 29 20 2d | 20 73 42 61 72 57 69 64 |m + 1) -| sBarWid|
|00000370| 74 68 29 20 2b 20 31 20 | 2d 20 63 75 72 54 6f 70 |th) + 1 |- curTop|
|00000380| 29 3b 0d 09 09 53 68 6f | 77 43 6f 6e 74 72 6f 6c |);...Sho|wControl|
|00000390| 20 28 63 75 72 2d 3e 76 | 53 63 72 6f 6c 6c 29 3b | (cur->v|Scroll);|
|000003a0| 0d 09 09 63 6f 6e 74 72 | 6c 52 65 63 74 20 3d 20 |...contr|lRect = |
|000003b0| 28 2a 2a 28 63 75 72 2d | 3e 76 53 63 72 6f 6c 6c |(**(cur-|>vScroll|
|000003c0| 29 29 2e 63 6f 6e 74 72 | 6c 52 65 63 74 3b 0d 09 |)).contr|lRect;..|
|000003d0| 09 56 61 6c 69 64 52 65 | 63 74 20 28 26 63 6f 6e |.ValidRe|ct (&con|
|000003e0| 74 72 6c 52 65 63 74 29 | 3b 0d 09 7d 0d 09 0d 09 |trlRect)|;..}....|
|000003f0| 69 66 20 28 63 75 72 2d | 3e 68 53 63 72 6f 6c 6c |if (cur-|>hScroll|
|00000400| 20 21 3d 20 4e 55 4c 4c | 29 20 7b 0d 09 09 63 6f | != NULL|) {...co|
|00000410| 6e 74 72 6c 52 65 63 74 | 20 3d 20 28 2a 2a 28 63 |ntrlRect| = (**(c|
|00000420| 75 72 2d 3e 68 53 63 72 | 6f 6c 6c 29 29 2e 63 6f |ur->hScr|oll)).co|
|00000430| 6e 74 72 6c 52 65 63 74 | 3b 0d 09 09 63 75 72 4c |ntrlRect|;...curL|
|00000440| 65 66 74 20 3d 20 63 6f | 6e 74 72 6c 52 65 63 74 |eft = co|ntrlRect|
|00000450| 2e 6c 65 66 74 3b 0d 09 | 09 48 69 64 65 43 6f 6e |.left;..|.HideCon|
|00000460| 74 72 6f 6c 20 28 63 75 | 72 2d 3e 68 53 63 72 6f |trol (cu|r->hScro|
|00000470| 6c 6c 29 3b 0d 09 09 4d | 6f 76 65 43 6f 6e 74 72 |ll);...M|oveContr|
|00000480| 6f 6c 20 28 63 75 72 2d | 3e 68 53 63 72 6f 6c 6c |ol (cur-|>hScroll|
|00000490| 2c 0d 09 09 09 09 09 20 | 63 75 72 4c 65 66 74 2c |,...... |curLeft,|
|000004a0| 0d 09 09 09 09 09 20 28 | 70 6f 72 74 52 65 63 74 |...... (|portRect|
|000004b0| 2e 62 6f 74 74 6f 6d 20 | 2b 20 31 29 20 2d 20 73 |.bottom |+ 1) - s|
|000004c0| 42 61 72 57 69 64 74 68 | 29 3b 0d 09 09 53 69 7a |BarWidth|);...Siz|
|000004d0| 65 43 6f 6e 74 72 6f 6c | 20 28 63 75 72 2d 3e 68 |eControl| (cur->h|
|000004e0| 53 63 72 6f 6c 6c 2c 0d | 09 09 09 09 09 20 28 28 |Scroll,.|..... ((|
|000004f0| 70 6f 72 74 52 65 63 74 | 2e 72 69 67 68 74 20 2b |portRect|.right +|
|00000500| 20 31 29 20 2d 20 73 42 | 61 72 57 69 64 74 68 29 | 1) - sB|arWidth)|
|00000510| 20 2b 20 31 20 2d 20 63 | 75 72 4c 65 66 74 2c 0d | + 1 - c|urLeft,.|
|00000520| 09 09 09 09 09 20 73 42 | 61 72 57 69 64 74 68 29 |..... sB|arWidth)|
|00000530| 3b 0d 09 09 53 68 6f 77 | 43 6f 6e 74 72 6f 6c 20 |;...Show|Control |
|00000540| 28 63 75 72 2d 3e 68 53 | 63 72 6f 6c 6c 29 3b 0d |(cur->hS|croll);.|
|00000550| 09 09 63 6f 6e 74 72 6c | 52 65 63 74 20 3d 20 28 |..contrl|Rect = (|
|00000560| 2a 2a 28 63 75 72 2d 3e | 68 53 63 72 6f 6c 6c 29 |**(cur->|hScroll)|
|00000570| 29 2e 63 6f 6e 74 72 6c | 52 65 63 74 3b 0d 09 09 |).contrl|Rect;...|
|00000580| 56 61 6c 69 64 52 65 63 | 74 20 28 26 63 6f 6e 74 |ValidRec|t (&cont|
|00000590| 72 6c 52 65 63 74 29 3b | 0d 09 7d 0d 7d 20 2f 2a |rlRect);|..}.} /*|
|000005a0| 52 65 73 69 7a 65 53 63 | 72 6f 6c 6c 42 61 72 73 |ResizeSc|rollBars|
|000005b0| 2a 2f 0d 20 0d 2f 2a 2d | 2d 2d 2d 2d 2d 2d 2d 2d |*/. ./*-|--------|
|000005c0| 2d 2a 2f 0d 76 6f 69 64 | 20 44 6f 53 63 72 6f 6c |-*/.void| DoScrol|
|000005d0| 6c 50 61 72 74 09 28 43 | 6f 6e 74 72 6f 6c 48 61 |lPart.(C|ontrolHa|
|000005e0| 6e 64 6c 65 09 77 68 69 | 63 68 53 63 72 6f 6c 6c |ndle.whi|chScroll|
|000005f0| 2c 0d 09 09 09 09 09 20 | 73 68 6f 72 74 09 09 09 |,...... |short...|
|00000600| 70 61 72 74 43 6f 64 65 | 29 0d 7b 0d 09 73 68 6f |partCode|).{..sho|
|00000610| 72 74 09 09 09 70 61 67 | 65 53 69 7a 65 3b 0d 09 |rt...pag|eSize;..|
|00000620| 73 68 6f 72 74 09 09 09 | 64 65 6c 74 61 3b 0d 09 |short...|delta;..|
|00000630| 73 68 6f 72 74 09 09 09 | 6f 6c 64 56 61 6c 75 65 |short...|oldValue|
|00000640| 3b 0d 0d 09 70 61 67 65 | 53 69 7a 65 20 3d 20 47 |;...page|Size = G|
|00000650| 65 74 43 52 65 66 43 6f | 6e 20 28 77 68 69 63 68 |etCRefCo|n (which|
|00000660| 53 63 72 6f 6c 6c 29 3b | 0d 09 73 77 69 74 63 68 |Scroll);|..switch|
|00000670| 20 28 70 61 72 74 43 6f | 64 65 29 20 7b 0d 09 63 | (partCo|de) {..c|
|00000680| 61 73 65 20 69 6e 55 70 | 42 75 74 74 6f 6e 3a 0d |ase inUp|Button:.|
|00000690| 09 09 09 64 65 6c 74 61 | 20 3d 20 2d 31 3b 0d 09 |...delta| = -1;..|
|000006a0| 09 62 72 65 61 6b 3b 0d | 09 63 61 73 65 20 69 6e |.break;.|.case in|
|000006b0| 44 6f 77 6e 42 75 74 74 | 6f 6e 3a 0d 09 09 09 64 |DownButt|on:....d|
|000006c0| 65 6c 74 61 20 3d 20 31 | 3b 0d 09 09 62 72 65 61 |elta = 1|;...brea|
|000006d0| 6b 3b 0d 09 63 61 73 65 | 20 69 6e 50 61 67 65 55 |k;..case| inPageU|
|000006e0| 70 3a 0d 09 09 09 64 65 | 6c 74 61 20 3d 20 2d 70 |p:....de|lta = -p|
|000006f0| 61 67 65 53 69 7a 65 3b | 0d 09 09 62 72 65 61 6b |ageSize;|...break|
|00000700| 3b 0d 09 63 61 73 65 20 | 69 6e 50 61 67 65 44 6f |;..case |inPageDo|
|00000710| 77 6e 3a 0d 09 09 09 64 | 65 6c 74 61 20 3d 20 70 |wn:....d|elta = p|
|00000720| 61 67 65 53 69 7a 65 3b | 0d 09 09 62 72 65 61 6b |ageSize;|...break|
|00000730| 3b 0d 09 64 65 66 61 75 | 6c 74 3a 0d 09 09 09 64 |;..defau|lt:....d|
|00000740| 65 6c 74 61 20 3d 20 30 | 3b 0d 09 09 62 72 65 61 |elta = 0|;...brea|
|00000750| 6b 3b 0d 09 7d 20 2f 2a | 73 77 69 74 63 68 2a 2f |k;..} /*|switch*/|
|00000760| 0d 09 69 66 20 28 64 65 | 6c 74 61 20 21 3d 20 30 |..if (de|lta != 0|
|00000770| 29 20 7b 0d 09 09 6f 6c | 64 56 61 6c 75 65 20 3d |) {...ol|dValue =|
|00000780| 20 47 65 74 43 74 6c 56 | 61 6c 75 65 20 28 77 68 | GetCtlV|alue (wh|
|00000790| 69 63 68 53 63 72 6f 6c | 6c 29 3b 0d 09 09 53 65 |ichScrol|l);...Se|
|000007a0| 74 43 74 6c 56 61 6c 75 | 65 20 28 77 68 69 63 68 |tCtlValu|e (which|
|000007b0| 53 63 72 6f 6c 6c 2c 20 | 6f 6c 64 56 61 6c 75 65 |Scroll, |oldValue|
|000007c0| 20 2b 20 64 65 6c 74 61 | 29 3b 0d 09 7d 0d 7d 20 | + delta|);..}.} |
|000007d0| 2f 2a 44 6f 53 63 72 6f | 6c 6c 50 61 72 74 2a 2f |/*DoScro|llPart*/|
|000007e0| 0d 09 0d 2f 2a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2a |.../*---|-------*|
|000007f0| 2f 0d 70 61 73 63 61 6c | 20 76 6f 69 64 20 41 63 |/.pascal| void Ac|
|00000800| 74 69 6f 6e 47 6c 75 65 | 09 28 43 6f 6e 74 72 6f |tionGlue|.(Contro|
|00000810| 6c 48 61 6e 64 6c 65 09 | 77 68 69 63 68 53 63 72 |lHandle.|whichScr|
|00000820| 6f 6c 6c 2c 0d 09 09 09 | 09 09 09 20 73 68 6f 72 |oll,....|... shor|
|00000830| 74 09 09 09 70 61 72 74 | 43 6f 64 65 29 3b 0d 70 |t...part|Code);.p|
|00000840| 61 73 63 61 6c 20 76 6f | 69 64 20 41 63 74 69 6f |ascal vo|id Actio|
|00000850| 6e 47 6c 75 65 09 28 43 | 6f 6e 74 72 6f 6c 48 61 |nGlue.(C|ontrolHa|
|00000860| 6e 64 6c 65 09 77 68 69 | 63 68 53 63 72 6f 6c 6c |ndle.whi|chScroll|
|00000870| 2c 0d 09 09 09 09 09 09 | 20 73 68 6f 72 74 09 09 |,.......| short..|
|00000880| 09 70 61 72 74 43 6f 64 | 65 29 0d 7b 0d 09 73 68 |.partCod|e).{..sh|
|00000890| 6f 72 74 09 09 09 6f 6c | 64 56 61 6c 75 65 3b 0d |ort...ol|dValue;.|
|000008a0| 09 73 68 6f 72 74 09 09 | 09 6e 65 77 56 61 6c 75 |.short..|.newValu|
|000008b0| 65 3b 0d 09 53 63 72 6f | 6c 6c 50 72 6f 63 50 74 |e;..Scro|llProcPt|
|000008c0| 72 09 61 63 74 69 6f 6e | 50 72 6f 63 3b 0d 0d 09 |r.action|Proc;...|
|000008d0| 6f 6c 64 56 61 6c 75 65 | 20 3d 20 47 65 74 43 74 |oldValue| = GetCt|
|000008e0| 6c 56 61 6c 75 65 20 28 | 77 68 69 63 68 53 63 72 |lValue (|whichScr|
|000008f0| 6f 6c 6c 29 3b 0d 09 44 | 6f 53 63 72 6f 6c 6c 50 |oll);..D|oScrollP|
|00000900| 61 72 74 20 28 77 68 69 | 63 68 53 63 72 6f 6c 6c |art (whi|chScroll|
|00000910| 2c 20 70 61 72 74 43 6f | 64 65 29 3b 0d 09 6e 65 |, partCo|de);..ne|
|00000920| 77 56 61 6c 75 65 20 3d | 20 47 65 74 43 74 6c 56 |wValue =| GetCtlV|
|00000930| 61 6c 75 65 20 28 77 68 | 69 63 68 53 63 72 6f 6c |alue (wh|ichScrol|
|00000940| 6c 29 3b 0d 09 69 66 20 | 28 6e 65 77 56 61 6c 75 |l);..if |(newValu|
|00000950| 65 20 21 3d 20 6f 6c 64 | 56 61 6c 75 65 29 20 7b |e != old|Value) {|
|00000960| 0d 09 09 61 63 74 69 6f | 6e 50 72 6f 63 20 3d 20 |...actio|nProc = |
|00000970| 28 53 63 72 6f 6c 6c 50 | 72 6f 63 50 74 72 29 20 |(ScrollP|rocPtr) |
|00000980| 28 2a 2a 77 68 69 63 68 | 53 63 72 6f 6c 6c 29 2e |(**which|Scroll).|
|00000990| 63 6f 6e 74 72 6c 41 63 | 74 69 6f 6e 3b 0d 09 09 |contrlAc|tion;...|
|000009a0| 28 2a 61 63 74 69 6f 6e | 50 72 6f 63 29 20 28 6e |(*action|Proc) (n|
|000009b0| 65 77 56 61 6c 75 65 2c | 20 6f 6c 64 56 61 6c 75 |ewValue,| oldValu|
|000009c0| 65 29 3b 0d 09 7d 0d 7d | 20 2f 2a 41 63 74 69 6f |e);..}.}| /*Actio|
|000009d0| 6e 47 6c 75 65 2a 2f 0d | 20 0d 2f 2a 2d 2d 2d 2d |nGlue*/.| ./*----|
|000009e0| 2d 2d 2d 2d 2d 2d 2a 2f | 0d 76 6f 69 64 20 54 72 |------*/|.void Tr|
|000009f0| 61 63 6b 53 63 72 6f 6c | 6c 09 28 43 6f 6e 74 72 |ackScrol|l.(Contr|
|00000a00| 6f 6c 48 61 6e 64 6c 65 | 09 77 68 69 63 68 53 63 |olHandle|.whichSc|
|00000a10| 72 6f 6c 6c 2c 0d 09 09 | 09 09 09 20 73 68 6f 72 |roll,...|... shor|
|00000a20| 74 09 09 09 70 61 72 74 | 43 6f 64 65 2c 0d 09 09 |t...part|Code,...|
|00000a30| 09 09 09 20 50 6f 69 6e | 74 09 09 09 77 68 65 72 |... Poin|t...wher|
|00000a40| 65 2c 0d 09 09 09 09 09 | 20 53 63 72 6f 6c 6c 50 |e,......| ScrollP|
|00000a50| 72 6f 63 50 74 72 09 61 | 63 74 69 6f 6e 50 72 6f |rocPtr.a|ctionPro|
|00000a60| 63 29 0d 7b 0d 09 73 68 | 6f 72 74 09 09 09 6f 6c |c).{..sh|ort...ol|
|00000a70| 64 56 61 6c 75 65 3b 0d | 09 73 68 6f 72 74 09 09 |dValue;.|.short..|
|00000a80| 09 6e 65 77 56 61 6c 75 | 65 3b 0d 0d 09 69 66 20 |.newValu|e;...if |
|00000a90| 28 70 61 72 74 43 6f 64 | 65 20 3d 3d 20 69 6e 54 |(partCod|e == inT|
|00000aa0| 68 75 6d 62 29 20 7b 0d | 09 09 6f 6c 64 56 61 6c |humb) {.|..oldVal|
|00000ab0| 75 65 20 3d 20 47 65 74 | 43 74 6c 56 61 6c 75 65 |ue = Get|CtlValue|
|00000ac0| 20 28 77 68 69 63 68 53 | 63 72 6f 6c 6c 29 3b 0d | (whichS|croll);.|
|00000ad0| 09 09 70 61 72 74 43 6f | 64 65 20 3d 20 54 72 61 |..partCo|de = Tra|
|00000ae0| 63 6b 43 6f 6e 74 72 6f | 6c 20 28 77 68 69 63 68 |ckContro|l (which|
|00000af0| 53 63 72 6f 6c 6c 2c 20 | 77 68 65 72 65 2c 20 4e |Scroll, |where, N|
|00000b00| 55 4c 4c 29 3b 0d 09 09 | 69 66 20 28 61 63 74 69 |ULL);...|if (acti|
|00000b10| 6f 6e 50 72 6f 63 20 21 | 3d 20 4e 55 4c 4c 29 20 |onProc !|= NULL) |
|00000b20| 7b 0d 09 09 09 6e 65 77 | 56 61 6c 75 65 20 3d 20 |{....new|Value = |
|00000b30| 47 65 74 43 74 6c 56 61 | 6c 75 65 20 28 77 68 69 |GetCtlVa|lue (whi|
|00000b40| 63 68 53 63 72 6f 6c 6c | 29 3b 0d 09 09 09 28 2a |chScroll|);....(*|
|00000b50| 61 63 74 69 6f 6e 50 72 | 6f 63 29 20 28 6e 65 77 |actionPr|oc) (new|
|00000b60| 56 61 6c 75 65 2c 20 6f | 6c 64 56 61 6c 75 65 29 |Value, o|ldValue)|
|00000b70| 3b 0d 09 09 7d 0d 09 7d | 20 65 6c 73 65 20 7b 0d |;...}..}| else {.|
|00000b80| 09 09 69 66 20 28 61 63 | 74 69 6f 6e 50 72 6f 63 |..if (ac|tionProc|
|00000b90| 20 3d 3d 20 4e 55 4c 4c | 29 20 7b 0d 09 09 09 70 | == NULL|) {....p|
|00000ba0| 61 72 74 43 6f 64 65 20 | 3d 20 54 72 61 63 6b 43 |artCode |= TrackC|
|00000bb0| 6f 6e 74 72 6f 6c 20 28 | 77 68 69 63 68 53 63 72 |ontrol (|whichScr|
|00000bc0| 6f 6c 6c 2c 20 77 68 65 | 72 65 2c 20 4e 55 4c 4c |oll, whe|re, NULL|
|00000bd0| 29 3b 0d 09 09 09 44 6f | 53 63 72 6f 6c 6c 50 61 |);....Do|ScrollPa|
|00000be0| 72 74 20 28 77 68 69 63 | 68 53 63 72 6f 6c 6c 2c |rt (whic|hScroll,|
|00000bf0| 20 70 61 72 74 43 6f 64 | 65 29 3b 0d 09 09 7d 20 | partCod|e);...} |
|00000c00| 65 6c 73 65 20 7b 0d 09 | 09 09 28 2a 2a 77 68 69 |else {..|..(**whi|
|00000c10| 63 68 53 63 72 6f 6c 6c | 29 2e 63 6f 6e 74 72 6c |chScroll|).contrl|
|00000c20| 41 63 74 69 6f 6e 20 3d | 20 28 50 72 6f 63 50 74 |Action =| (ProcPt|
|00000c30| 72 29 20 61 63 74 69 6f | 6e 50 72 6f 63 3b 0d 09 |r) actio|nProc;..|
|00000c40| 09 09 70 61 72 74 43 6f | 64 65 20 3d 20 54 72 61 |..partCo|de = Tra|
|00000c50| 63 6b 43 6f 6e 74 72 6f | 6c 20 28 77 68 69 63 68 |ckContro|l (which|
|00000c60| 53 63 72 6f 6c 6c 2c 20 | 77 68 65 72 65 2c 20 28 |Scroll, |where, (|
|00000c70| 50 72 6f 63 50 74 72 29 | 20 26 41 63 74 69 6f 6e |ProcPtr)| &Action|
|00000c80| 47 6c 75 65 29 3b 0d 09 | 09 7d 0d 09 7d 0d 7d 20 |Glue);..|.}..}.} |
|00000c90| 2f 2a 54 72 61 63 6b 53 | 63 72 6f 6c 6c 2a 2f 0d |/*TrackS|croll*/.|
|00000ca0| 0d 2f 2a 20 53 63 72 6f | 6c 6c 69 6e 67 20 2a 2f |./* Scro|lling */|
|00000cb0| 0d 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000d10| 77 65 72 73 20 44 65 76 | 65 6c 6f 70 6d 65 6e 74 |wers Dev|elopment|
|00000d20| 20 43 6f 72 70 2e 20 2a | 2f 0d 2f 2a 20 53 63 72 | Corp. *|/./* Scr|
|00000d30| 0b 53 63 72 6f 6c 6c 69 | 6e 67 2e 63 02 00 00 00 |.Scrolli|ng.c....|
|00000d40| 54 45 58 54 4d 50 53 20 | 40 00 00 00 00 00 00 00 |TEXTMPS |@.......|
|00000d50| 00 00 54 45 58 54 4d 50 | 53 20 40 00 00 00 00 00 |..TEXTMP|S @.....|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 9f 7e d5 e0 00 00 | 00 00 00 00 01 ac 69 6e |...~....|......in|
|00000d80| 63 6c 75 64 65 20 3c 44 | 69 61 6c 6f 67 73 2e 68 |clude <D|ialogs.h|
|00000d90| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 45 76 65 6e |>.#inclu|de <Even|
|00000da0| 74 73 2e 68 3e 0d 23 69 | 6e 63 6c 75 64 65 20 3c |ts.h>.#i|nclude <|
|00000db0| 4c 69 73 74 73 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |Lists.h>|.#includ|
|00000dc0| 65 20 3c 4d 65 6e 75 73 | 2e 68 3e 0d 23 69 6e 63 |e <Menus|.h>.#inc|
|00000dd0| 6c 75 64 65 20 3c 54 65 | 78 74 45 64 69 74 2e 68 |lude <Te|xtEdit.h|
|00000de0| 3e 0d 0d 23 69 6e 63 6c | 75 64 65 20 22 47 6c 6f |>..#incl|ude "Glo|
|00000df0| 62 61 6c 73 2e 68 22 09 | 0d 0d 23 69 6e 63 6c 75 |bals.h".|..#inclu|
|00000e00| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 67 2e 63 |...H..Mo|naco.g.c|
|00000e10| 20 2a 2f 0d 0d 23 69 6e | 63 6c 75 64 65 20 3c 54 | */..#in|clude <T|
|00000e20| 79 70 65 73 2e 68 00 06 | 00 04 00 2c 00 05 01 bb |ypes.h..|...,....|
|00000e30| 02 7b 00 2c 00 05 01 bb | 02 7b a5 3b 7f 1b 00 00 |.{.,....|.{.;....|
|00000e40| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 1e |........|........|
|00000e50| 00 2c 00 05 01 bb 02 7b | 00 2c 00 05 01 bb 02 7b |.,.....{|.,.....{|
|00000e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e70| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 49 |.....n..|.n...>.I|
|00000e80| 9f 58 0a 4a 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |.X.J....|.>..MPSR|
|00000e90| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|00000ea0| 03 f0 ff ff 00 00 00 4c | 00 4b 9a 40 00 00 00 00 |.......L|.K.@....|
|00000eb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ed0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ef0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+